package sudroid;

import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import sudroid.net2.Response;

public class CleanUtils
{
  public static boolean closeStream(Closeable paramCloseable)
  {
    if (paramCloseable != null);
    while (true)
    {
      try
      {
        paramCloseable.close();
        i = 1;
        return i;
      }
      catch (IOException localIOException)
      {
        LogUtils.e(localIOException);
      }
      int i = 0;
    }
  }

  public static boolean deleteFile(File paramFile)
  {
    return FileUtil.deleteDependon(paramFile);
  }

  public static boolean deleteFile(String paramString)
  {
    return FileUtil.deleteDependon(paramString);
  }

  public static void disconnectResponse(Response paramResponse)
  {
    if (paramResponse != null)
      paramResponse.disconnect();
  }
}